
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
#source 'https://github.com/CocoaPods/Specs.git'
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'

target 'JiaoZiTaxi' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for JiaoZiTaxi
  pod 'SwiftDate', '~> 7.0'
  pod 'SystemNotification'
  pod 'Alamofire'
  pod 'KeychainAccess'
  pod 'JZLocationConverterSwift','~> 1.0'
  pod 'SheeKit', '~> 2.0.0'
  pod 'SDWebImageSwiftUI'
  pod 'Kingfisher', '~> 7.0'
  pod 'AlertToast'
  pod 'SwiftLint'
  pod 'Swifter', '~> 1.5.0'

  pod 'QY_iOS_SDK', '~> 9.0.0'
  pod 'IQKeyboardManager'

  pod 'Localize-Swift', '~> 3.2'
end

post_install do |installer_representation|
  installer_representation.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      if config.name != 'Release'
        config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'DEBUG=1']
      end
    end
  end
  
  # xcode16 打包上传报错
  bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
  def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
    framework_path = File.join(Dir.pwd, framework_relative_path)
    command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
    puts "Stripping bitcode: #{command}"
    system(command)
  end
  framework_paths = [
    "/Pods/NIMSDK_LITE/NIMSDK/NIMSDK.framework/NIMSDK",
  ]
  framework_paths.each do |framework_relative_path|
    strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
  end
end
